﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Mathmall.Administration.Migrations
{
    /// <inheritdoc />
    public partial class ChangeMenuTable : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "路径",
                table: "Menu",
                newName: "Path");

            migrationBuilder.RenameColumn(
                name: "菜单编码",
                table: "Menu",
                newName: "MenuCode");

            migrationBuilder.RenameColumn(
                name: "菜单名称",
                table: "Menu",
                newName: "MenuName");

            migrationBuilder.RenameColumn(
                name: "节点类型",
                table: "Menu",
                newName: "NodeType");

            migrationBuilder.RenameColumn(
                name: "节点层级",
                table: "Menu",
                newName: "Level");

            migrationBuilder.RenameColumn(
                name: "父节点id",
                table: "Menu",
                newName: "ParendId");

            migrationBuilder.RenameColumn(
                name: "url",
                table: "Menu",
                newName: "LinkUrl");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Path",
                table: "Menu",
                newName: "路径");

            migrationBuilder.RenameColumn(
                name: "ParendId",
                table: "Menu",
                newName: "父节点id");

            migrationBuilder.RenameColumn(
                name: "NodeType",
                table: "Menu",
                newName: "节点类型");

            migrationBuilder.RenameColumn(
                name: "MenuName",
                table: "Menu",
                newName: "菜单名称");

            migrationBuilder.RenameColumn(
                name: "MenuCode",
                table: "Menu",
                newName: "菜单编码");

            migrationBuilder.RenameColumn(
                name: "LinkUrl",
                table: "Menu",
                newName: "url");

            migrationBuilder.RenameColumn(
                name: "Level",
                table: "Menu",
                newName: "节点层级");
        }
    }
}
